/* board2 shares the native TitanCore lobby frame. Other layouts are untouched. */
.feed-layout.tc-board2-shell[data-board2-shell] {
    --tc-gallery-rail: 244px;
    --tc-gallery-header-height: 86px;
    --tc-bg: #111e29;
    --tc-surface: #1b303c;
    --tc-soft: #263e48;
    --tc-ink: #edf5f1;
    --tc-muted: #b1c5bd;
    --tc-line: #3b555d;
    --tc-accent: #83d8bd;
    --tc-accent-ink: #112b2d;
    --tc-focus: #94e8cd;
    display: flex;
    min-height: 100dvh;
    padding: 0;
    background: linear-gradient(135deg, #101b26, #152936);
    color: var(--tc-ink);
    color-scheme: dark;
    font: 15px/1.6 "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
}

.feed-layout.tc-board2-shell[data-board2-shell],
.feed-layout.tc-board2-shell[data-board2-shell] *,
.feed-layout.tc-board2-shell[data-board2-shell] *::before,
.feed-layout.tc-board2-shell[data-board2-shell] *::after {
    box-sizing: border-box;
}

.feed-layout.tc-board2-shell[data-board2-shell] [hidden] {
    display: none !important;
}

.feed-layout.tc-board2-shell[data-board2-shell] a {
    text-decoration: none;
}

.feed-layout.tc-board2-shell[data-board2-shell] :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--tc-focus);
    outline-offset: 3px;
}

.feed-layout.tc-board2-shell[data-board2-shell] > .feed-sidebar {
    position: fixed;
    z-index: 120;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: var(--tc-gallery-rail);
    height: 100dvh;
    padding: 35px 24px 26px;
    border-right: 1px solid #314751;
    background: #172731;
    backdrop-filter: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #496269 transparent;
}

.feed-layout.tc-board2-shell[data-board2-shell] > .feed-sidebar > * {
    flex-shrink: 0;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #edf5f1;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: 1px;
    line-height: 1.35;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-mark {
    display: grid;
    flex: 0 0 43px;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    background: #79cdb2;
    color: #11292b;
    font-size: 28px;
    letter-spacing: 0;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-brand-copy {
    min-width: 0;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-brand-copy small {
    display: block;
    margin-top: 5px;
    color: #a5bdb6;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 48px 0 0;
    padding: 0;
}

.feed-layout.tc-board2-shell[data-board2-shell] .feed-nav {
    display: block;
    min-height: 47px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #b1c5bd;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    line-height: 1.6;
    white-space: nowrap;
    box-shadow: none;
}

.feed-layout.tc-board2-shell[data-board2-shell] .feed-nav:hover {
    background: #243e47;
    color: #edf5f1;
}

.feed-layout.tc-board2-shell[data-board2-shell] .feed-nav.active,
.feed-layout.tc-board2-shell[data-board2-shell] .feed-nav[aria-current="page"] {
    background: #294b4b;
    color: #e2f9ef;
    box-shadow: inset 3px 0 #83d8bd;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-secondary,
.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-site-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #314751;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-nav-label {
    display: block;
    padding: 0 16px 6px;
    color: #a5bdb6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-note {
    margin-top: auto;
    padding: 28px 10px 0;
    color: #edf5f1;
    font-size: 12px;
    font-weight: 700;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-note p {
    margin: 7px 0 0;
    color: #b1c5bd;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.9;
}

.feed-layout.tc-board2-shell[data-board2-shell] > .feed-main {
    width: calc(100% - var(--tc-gallery-rail));
    min-width: 0;
    min-height: 100dvh;
    margin-left: var(--tc-gallery-rail);
    padding: 0;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-header {
    position: sticky;
    z-index: 110;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--tc-gallery-header-height);
    padding: 14px 36px;
    border-bottom: 1px solid #314751;
    background: #142630;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-header > :first-child {
    min-width: 0;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-header h1 {
    margin: 0;
    color: #edf5f1;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.6px;
    line-height: 1.45;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-header p {
    margin: 4px 0 0;
    color: #b1c5bd;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-account {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    max-width: 45%;
    color: #cfdfd8;
    font-size: 12px;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-account a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid #496269;
    border-radius: 9px;
    background: #1b303c;
    color: #cfdfd8;
    white-space: nowrap;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-account a:hover {
    background: #263e48;
    color: #edf5f1;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-account > span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-board-local {
    min-height: calc(100dvh - var(--tc-gallery-header-height));
    padding: 28px 36px 36px;
    border-radius: 0;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-board-local:has(.tc-gallery-board2) {
    padding-top: 0;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-topbar {
    top: var(--tc-gallery-header-height);
    min-height: 86px;
    padding: 16px 0;
    margin-bottom: 12px;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-scene-toggle {
    color: #b1c5bd;
}

.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-scene-toggle:hover,
.feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-scene-toggle[aria-expanded="true"] {
    color: #83d8bd;
}

.feed-layout.tc-board2-shell[data-board2-shell] .board {
    min-width: 0;
    max-width: 100%;
}

.feed-layout.tc-board2-shell[data-board2-shell] .board :is(.board_write, .write_editor, .rx_ckeditor, .cke) {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1100px) and (min-width: 761px) {
    .feed-layout.tc-board2-shell[data-board2-shell] {
        --tc-gallery-rail: 220px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] > .feed-sidebar {
        padding-right: 18px;
        padding-left: 18px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-header {
        gap: 12px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-account {
        gap: 6px;
        font-size: 11px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-account a {
        padding-right: 7px;
        padding-left: 7px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-board-local {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (min-width: 761px) and (max-height: 740px) {
    .feed-layout.tc-board2-shell[data-board2-shell] > .feed-sidebar {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-nav {
        gap: 5px;
        margin-top: 32px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .feed-nav {
        min-height: 41px;
        padding-top: 9px;
        padding-bottom: 9px;
    }
}

@media (max-width: 760px) {
    .feed-layout.tc-board2-shell[data-board2-shell] {
        --tc-gallery-rail: 0px;
        --tc-gallery-header-height: 0px;
        display: block;
        padding: 0;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] > .feed-sidebar {
        top: 0;
        right: 0;
        bottom: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        height: 100px;
        padding: 0 14px;
        border-right: 0;
        border-bottom: 1px solid #314751;
        overflow: hidden;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-brand {
        flex: 0 0 56px;
        gap: 10px;
        height: 56px;
        font-size: 15px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-mark {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 23px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-brand-copy small {
        margin-top: 3px;
        font-size: 7px;
        letter-spacing: 1px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-nav {
        flex: 0 0 44px;
        flex-direction: row;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        height: 44px;
        margin: 0;
        padding: 0 0 5px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-nav::-webkit-scrollbar {
        display: none;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .feed-nav {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 9px;
        font-size: 12px;
        line-height: 1.6;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .feed-nav.active,
    .feed-layout.tc-board2-shell[data-board2-shell] .feed-nav[aria-current="page"] {
        box-shadow: inset 0 -2px #83d8bd;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-secondary,
    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-site-nav,
    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-note {
        display: none;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] > .feed-main {
        width: 100%;
        min-height: 100dvh;
        margin-left: 0;
        padding: 100px 0 0;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-header {
        position: static;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px 12px;
        min-height: 0;
        padding: 18px 16px 15px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-header h1 {
        font-size: 18px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-header p {
        margin-top: 4px;
        font-size: 11px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-account {
        flex: 1 0 100%;
        justify-content: flex-start;
        max-width: 100%;
        gap: 6px 8px;
        font-size: 11px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-account a {
        min-height: 32px;
        padding: 4px 8px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-board-local {
        min-height: 0;
        padding: 18px 12px 28px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-topbar {
        top: 100px;
        min-height: 76px;
        padding: 12px 0;
        margin-bottom: 10px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-unified-scene {
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 360px) {
    .feed-layout.tc-board2-shell[data-board2-shell] > .feed-sidebar {
        padding-right: 10px;
        padding-left: 10px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .tc-gallery-nav {
        gap: 3px;
    }

    .feed-layout.tc-board2-shell[data-board2-shell] .feed-nav {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 11px;
    }
}
